<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Country extends CI_Controller {

	public function index()
	{
		$country = trim($this->uri->segment(2));
		$this->load->model('person_model');
		$country = urldecode($country);
		$data['lists'] = $this->person_model->getPersonByCountry($country);
		
		$data['country'] = $country;
		$this->load->view('country.tpl',$data);
	}
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */